package com.moshang.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.moshang.blog.entity.SysDept;

import java.util.List;

/**
 * @author xww
 * Created on 2019/7/2.
 */
public interface DeptService extends IService<SysDept> {
    List<SysDept> selectAllDeptTreeAndRoot();

    List<SysDept> selectByParentId(Integer parentId);

    void swapSort(Integer currentId, Integer swapId);

    void saveOrUpdateDict(SysDept sysDept);

    void deleteDept(Integer id);
}
